package com.hashmap1;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class SortArrayInMap {
public static void main(String[] args) {
	Map<String, int[]> map=new HashMap<String, int[]>(); 
	int array[]={3,5,9,1};
	map.put("array", array);
	Iterator<String> itr=map.keySet().iterator();
	while(itr.hasNext()){
		String arrName=itr.next();
		array=map.get(arrName);
		System.out.println(arrName+" : ");
		for(int i=0;i<array.length;i++){
			System.out.println(array[i]);
		}
	}
	
}
}
